{layout name="layout/index" /}
<div class="panel panel-default panel-intro">
{notempty name="nav_title.title"}
    <div class="panel-heading">
        <div class="panel-lead">
            <em>{$nav_title.title}</em>{$nav_title.remark}
        </div>
    </div>
{/notempty}  
<div class="panel-body is-dialog">
<form id="edit-form" class="edit-form form-horizontal" role="form" data-toggle="validator" method="POST" action="{:admin_url('admin/model/update')}">
<div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">模型标识:</label>
        <div class="col-xs-12 col-sm-6">
        <input type="text" class="form-control" name="name" value="{$info.name|default=''}" data-rule="required" placeholder="请输入文档模型标识">
        </div>
    </div>
    <div class="form-group">
        <label for="module" class="control-label col-xs-12 col-sm-2">模型名称:</label>
        <div class="col-xs-12 col-sm-6">
        <input type="text" class="form-control" name="title" value="{$info['title']|default=''}" data-rule="required" placeholder="请输入模型的名称">
        </div>
    </div>
    <div class="form-group">
        <label for="pid" class="control-label col-xs-12 col-sm-2">模型类型:</label>
        <div class="col-xs-12 col-sm-6">
          <select name="extend" class="form-control selectpicker">
            <option value="2">独立模型</option>
			<option value="1" selected="selected">文章模型</option>
			</select>目前只支持独立模型和文档模型
        </div>
    </div>
     <div class="form-group">
        <label for="pid" class="control-label col-xs-12 col-sm-2">引擎类型:</label>
        <div class="col-xs-12 col-sm-6">
			<select name="engine_type" class="form-control selectpicker">
			<option value="MyISAM">MyISAM</option>
			<option value="InnoDB">InnoDB</option>
            <option value="MEMORY">MEMORY</option>
            <option value="BLACKHOLE">BLACKHOLE</option>
            <option value="MRG_MYISAM">MRG_MYISAM</option>
            <option value="ARCHIVE">ARCHIVE</option>
			</select>
        </div>
    </div>   
    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">是否需要主键:</label>
        <div class="col-xs-12 col-sm-6">
		<select name="need_pk" class="form-control selectpicker">
			<option value="1" selected="selected">是</option>
			<option value="0">否</option>
		</select> &nbsp;&nbsp;&nbsp;&nbsp;<font color="#666666">（选“是”则会新建默认的id字段作为主键）</font> 
        </div>
    </div>
    <div class="form-group">
        <label for="module" class="control-label col-xs-12 col-sm-2">模型图标:</label>
        <div class="col-xs-12 col-sm-6">
        <input type="text" class="form-control" name="icon" value="{$info['icon']|default=''}"  placeholder="模型图标">
        </div>
    </div>    
  <div class="form-group hidden layer-footer">
      <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
            <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();"> 关闭</button>
        </div>
    </div>
</form>
            </div>
            </div> 